<div class="Breadcrumb">
	  <div class="Breadcrumb-i">您当前所在的位置：<span><a href="<?php echo base_url($this->_site_path.'/admin');?>">管理员信息管理</a></span>&nbsp;>&nbsp;<span class="orange"><?php echo isset($admin_data['admin_id'])?'修改':'添加';?></span> </div>               <div class="Breadcrumb-div">
       	   <ul>
           	   <li class="Breadcrumb-tj"><a href="<?php echo base_url( $this->_site_path.'/admin/add' );?>" >添加</a></li>
           	   <li class="Breadcrumb-lb"><a href="<?php echo base_url( $this->_site_path.'/admin' );?>" >列表</a></li>
           </ul>
        </div>
</div>
<div class="box box-headtitle box-radius">
	<?php if ( $is_edit == TRUE ) {?>
	<h4 class="title">管理员管理修改</h4>
	<?php } else {?>
	<h4 class="title">管理员管理添加</h4>
	<?php }?>

	<?php get_messagebox();// 获取提示框 ?>
	<form method="post">

		<div class="control-group">
			<label class="control-label" for="user_name">管理员</label>
			<div class="controls">
				<input type="text" name="user_name" id="user_name" placeholder="" value="<?php echo isset($admin_data['user_name'] ) ? $admin_data['user_name'] : ''; ?>">
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="group_id">所属管理员组</label>
			<div class="controls">
				<?php
				$js = 'id="group_id"';
				if ( $is_edit == FALSE ) {
				    	$first = "--请选择--";
				    	echo form_dropdown( 'group_id', $group, isset( $admin_data['group_id'] ) ? $admin_data['group_id'] : '', $js , $first);
				 }else{
				 	echo form_dropdown( 'group_id', $group, isset( $admin_data['group_id'] ) ? $admin_data['group_id'] : '', $js );
				 }
				?>
			</div>
		</div>
		
	
		<div class="control-group">
			<label class="control-label" for="real_name">真实姓名</label>
			<div class="controls">
				<input type="text" name="real_name" id="real_name" placeholder="" value="<?php echo isset($admin_data['real_name'] ) ? $admin_data['real_name'] : ''; ?>">
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="password">密码</label>
			<div class="controls">
				<input type="password" name="password" id="password" placeholder="" value="">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="repassword">确认密码</label>
			<div class="controls">
				<input type="password" name="repassword" id="repassword" placeholder="" value="">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="group_description">权限验证方式</label>
			<div class="controls">
				<select name='login_method'>
					<option value='1'>普通验证</option>
					<option value='2'  <?php if($admin_data['login_method']==2):?>selected='selected'<?php endif;?>>特殊验证</option>
				</select>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="email">邮箱</label>
			<div class="controls">
				<input type="text" name="email" id="email" placeholder="" value="<?php echo isset($admin_data['email'] ) ? $admin_data['email'] : ''; ?>">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="phone">手机</label>
			<div class="controls">
				<input type="text" name="phone" id="phone" placeholder="" value="<?php echo isset($admin_data['phone'] ) ? $admin_data['phone'] : ''; ?>">
			</div>
		</div>	
		<div class="control-group">
			<label class="control-label" for="description">描述</label>
			<div class="controls">
				<input type="text" name="description" id="description" placeholder="" value="<?php echo isset($admin_data['description'] ) ? $admin_data['description'] : ''; ?>">
			</div>
		</div>
		
		<div class="control-group control-group-submit">
			<?php if ( $is_edit == TRUE ) {?>
				<button type="submit" class="btn  btn-blue btn-left">修改</button>
			<?php } else {?>
				<button type="submit" class="btn  btn-blue btn-left">添加</button>
			<?php }?> 
			<button type="reset" class="btn  btn-blue btn-left">重置</button>
		</div>
		<input type="hidden" name="is_submit" value="1">
		<input type="hidden" name="admin_id" id="admin_id"  value="<?php echo isset($admin_data['admin_id'] ) ? $admin_data['admin_id'] : ''; ?>">
		<!--__TOKEN__-->
	</form>
</div>
